package com.wanlian.socketserver.Device;

public class DeviceOnline {
    private String devicekey;
    private boolean isOnline;
    private String version;

    public DeviceOnline(){}

    public DeviceOnline(String devicekey,boolean isOnline){
        this.setDevicekey(devicekey);
        this.setOnline(isOnline);
    }

    public DeviceOnline(String devicekey,boolean isOnline,String version){
        this.setDevicekey(devicekey);
        this.setOnline(isOnline);
        this.setVersion(version);
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getDevicekey() {
        return devicekey;
    }

    public void setDevicekey(String devicekey) {
        this.devicekey = devicekey;
    }

    public boolean isOnline() {
        return isOnline;
    }

    public void setOnline(boolean online) {
        isOnline = online;
    }
}
